package com.atguigu.spzx.user.service;

import com.atguigu.spzx.model.dto.h5.UserLoginDto;
import com.atguigu.spzx.model.dto.h5.UserRegisterDto;
import com.atguigu.spzx.model.vo.h5.UserInfoVo;
import jakarta.servlet.http.HttpServletRequest;

/**
 * ClassName: UserInfoService
 * Package: com.atguigu.spzx.user.service
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/16 4:15
 * @Version 1.0
 */
public interface UserInfoService {
    /**
     * 注册
     * @param userRegisterDto
     */
    void register(UserRegisterDto userRegisterDto);

    /**
     * 用户登录
     * @param userLoginDto
     * @param request
     */
    String login(UserLoginDto userLoginDto, HttpServletRequest request);

    /**
     * 获取用户信息
     * @param token
     * @return
     */
    UserInfoVo getCurrentUserInfo(String token);
}
